/**
 * 服务统一导出管理
 * 
 * 简化的导出结构：
 * - 基础API服务和工具
 * - 实际被使用的核心API
 * - 配置工具
 */

// ===== 基础API服务 =====
export { default as api, platformApi, httpUtils } from './api';
export type { ApiResponse, PageResponse } from './api';

// ===== API配置 =====
export { 
  API_MODE, 
  apiModeUtils 
} from './apiConfig';
export type { ApiModeUtils } from './apiConfig';

// ===== 网关和URL构建工具 =====
export { GATEWAY_CONFIG, apiUtils } from '../constants/common';

// ===== 核心API服务（实际被使用的）=====
// 认证服务
export { authApi } from './cloud/api/authApi';
export type { 
  SystemLoginRequest, 
  TenantLoginRequest, 
  AuthLoginResponse,
  RefreshTokenRequest
} from './cloud/api/authApi';

// 用户管理
export { userApi } from './cloud/api/userApi';
export type { 
  UserListParams, 
  CreateUserRequest, 
  UpdateUserRequest, 
  UserListResponse,
  ResetPasswordRequest,
  BatchUserRequest,
  UserStats,
  ImportResult
} from './cloud/api/userApi';

// 部门管理（被hooks使用）
export { departmentApi } from './cloud/api/departmentApi';

// 其他云服务API
export { roleApi } from './cloud/api/roleApi';
export { teamApi } from './cloud/api/teamApi';
export { permissionApi } from './cloud/api/permissionApi';
export { permissionConditionApi } from './cloud/api/permissionConditionApi';

// 租户管理API
export { tenantApi } from './platform/api/tenantApi';

// RBAC权限工具和API
export { 
  RbacUtils, 
  PERMISSION_CATEGORIES, 
  PERMISSION_ACTIONS, 
  PREDEFINED_PERMISSION_CODES 
} from './cloud/api/rbacUtils';
export type { PermissionCode } from './cloud/api/rbacUtils';

// ===== 业务服务（保留向后兼容，但推荐使用API层）=====
// 注意：service层即将废弃，推荐直接使用API层

// 系统服务
export * from './cloud/api/system';

// 用户服务类型
export type { LoginForm, User, LoginResponse } from './cloud/services/user';